package com.difed.cccam.util;

import android.app.Activity;
import android.view.ViewGroup;

import com.google.ads.AdRequest;
import com.google.ads.AdSize;
import com.google.ads.AdView;

public class PubliUtil {
    
    private static final String MY_AD_UNIT_ID = "a14dbfc1bb49f84";
    
    public static void createBanner(Activity activity, ViewGroup layout) {
        AdView adView = new AdView(activity, AdSize.BANNER, MY_AD_UNIT_ID);
        layout.addView(adView);
        AdRequest request = new AdRequest();
        request.setTesting(true);
        adView.loadAd(request);
    }

}
